<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="/public/lib/H-ui.admin/lib/html5shiv.js"></script>
<script type="text/javascript" src="/public/lib/H-ui.admin/lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="/public/lib/H-ui.admin/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/public/lib/H-ui.admin/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/public/lib/H-ui.admin/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="/public/lib/H-ui.admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="/public/lib/H-ui.admin/static/h-ui.admin/css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="/public/lib/H-ui.admin/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>用户管理</title>
</head>
<body>
<div class="pd-20">
  <div class="text-c">数据库：
    <input type="text" id="table_schema" value="fadmin" class="input-text" style="width:250px" placeholder="数据库名称" id="" name="">
    <button type="button" class="btn btn-success" id="" name="" onclick="queryAllTable()">
    	<i class="icon-search"></i>搜索
    </button>
  </div>
  <table id="dataTable"></table>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/public/lib/H-ui.admin/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="/public/lib/H-ui.admin/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/public/lib/H-ui.admin/static/h-ui/js/H-ui.min.js"></script> 
<script type="text/javascript" src="/public/lib/H-ui.admin/static/h-ui.admin/js/H-ui.admin.js"></script>
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<!-- 分页插件 -->
<script type="text/javascript" src="/public/lib/page/jqPaginator.js"></script> 
<link type="text/css" rel="stylesheet" href="/public/common/css/common.css"/>
<script type="text/javascript" src="/public/common/js/fpage.js"></script>
<script type="text/javascript" src="/public/common/js/ftable.js"></script>
<script type="text/javascript">
	function queryAllTable(){
		var table_schema = $("#table_schema").val();
		if(!table_schema){
			return ;
		}
		$("#dataTable").ftable({
			url:"/CodeGeneration/queryAllTable",
			param:{table_schema:table_schema},
			//singleSelect:false,
			pageSize:10,
			onLoad:function(data){
				console.log(data.list);
			},
			onSelect:function(e,rowId,rowData){
				console.log(rowId);
			},
			onClickRow:function(e,rowId,rowData){
				$("#dataTable").ftable("selectRow",{rowId:rowId});
			},
			columns:[
				{name:"表名",data:"table_name"},
				{name:"表类型",data:"table_type"},
				{name:"数据库",data:"table_schema"}
			]
		});
	}
</script>
</body>
</html>
